﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestMain.aspx.cs" Inherits="TestMain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>testMain</title>
    <link href="CSS/testNO1.css" type="text/css" rel="Stylesheet"></link>
</head>
<body>
    <form id="form1" runat="server">
    <div><div style="font-size:20px; background-color:#3277ba; font-weight:bold; ">GridView绑定</div>
        <asp:GridView ID="gvMain" runat="server" BackColor="White" 
            BorderColor="#CC9966" BorderStyle="None" BorderWidth="1px" CellPadding="4">
            <FooterStyle BackColor="#FFFFCC" ForeColor="#330099" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="#FFFFCC" />
            <PagerStyle BackColor="#FFFFCC" ForeColor="#330099" HorizontalAlign="Center" />
            <RowStyle BackColor="White" ForeColor="#330099" />
            <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="#663399" />
            <SortedAscendingCellStyle BackColor="#FEFCEB" />
            <SortedAscendingHeaderStyle BackColor="#AF0101" />
            <SortedDescendingCellStyle BackColor="#F6F0C0" />
            <SortedDescendingHeaderStyle BackColor="#7E0000" />
        </asp:GridView>
    </div>
    <hr style="filter: alpha(opacity=100,finishopacity=0,style=3)" width="80%" color="#987cb9"
        size="3">
    <div>
    <div style="font-size:20px; background-color:#3277ba; font-weight:bold; ">ListView数据绑定</div>
        <asp:ListView ID="lvMain" runat="server">
            <LayoutTemplate>
                <table>
                    <tr>
                        <th runat="server">
                            ID
                        </th>
                        <th runat="server">
                            UName
                        </th>
                        <th runat="server">
                            Upwd
                        </th>
                    </tr>
                    <tr runat="server" id="itemPlaceholder">
                    </tr>
                </table>
            </LayoutTemplate>
            <ItemTemplate>
                <tr>
                    <td>
                        <%# Eval("Id")%>
                    </td>
                    <td>
                        <%# Eval("userName")%>
                    </td>
                    <td>
                        <%# Eval("userPwd")%>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:ListView>
    </div>
    <div>
    <div style="font-size:20px; background-color:#3277ba; font-weight:bold; ">DIV+CSS</div>
        <table class="tableCss">
            <tr>
                <td class="top">
                    顶部
                </td>
            </tr>
        </table>
        <table class="tableCss">
            <tr>
                <td class="left">
                    左边
                </td>
                <td class="mid">
                    中间
                </td>
                <td class="right">
                    右边
                </td>
            </tr>
        </table>
        <table class="tableCss">
            <tr>
                <td class="bottom">
                    底部
                </td>
            </tr>
        </table>
    </div>
    <div>
    <div style="font-size:20px; background-color:#3277ba; font-weight:bold; ">Repeater绑定</div>
        <asp:Repeater ID="reMain" runat="server">
        <ItemTemplate>
        <%# Eval("userName")%>
        </ItemTemplate>
        </asp:Repeater>
    
    </div>
    </form>
</body>
</html>
